//
//  SGActionSheet.h
//  SGIconSheet
//
//  Created by Narcissus on 10/26/12.
//  Copyright (c) 2012 Narcissus. All rights reserved.
//

#import <UIKit/UIKit.h>
@class SGActionSheetCell;
@protocol SGActionSheetDelegate;

@interface SGActionSheet : UIView

@property (nonatomic, weak)id<SGActionSheetDelegate> delegate;
@property (nonatomic, strong) UIView *backgroundView;

- (id)initWithFrame:(CGRect)frame rowCount:(NSInteger)rowCount;
- (void)setContentWithImageArray:(NSArray *)imgArray titleArray:(NSArray *)titleArray;

- (void)showInView:(UIView *)theView;

@end


@interface SGActionSheetCell : UIControl
- (id)initWithFrame:(CGRect)frame;

@property (nonatomic, strong)UIButton   *iconBtnView;
@property (nonatomic, strong)UILabel    *titleLabel;

@end

@protocol SGActionSheetDelegate <NSObject>

@optional
- (void)didSelectItem:(SGActionSheet *)sheetCell index:(NSInteger)index;

@end